programmatic title react

68

programmatic title react -

// npm install --save react-helmet in terminal 
// Then in file

import React from 'react';
import { Helmet } from 'react-helmet';

const Home = () => {
  return (
    <div>
      <Helmet>
        <title>The Title You Want</title>
      </Helmet>
    // The Rest Of Your File....
    //
    //
    </div>
  );
    

Comments

Submit
0 Comments